StringScanner.SkipToString Function
Syntax
Result_Flag as L = SkipToString as l(characters as c)
Arguments
- Result_Flag
True if the string was found.
- characters
The character string to search for.
Description
Skip until text matching string is found. Return true if successful.
Discussion
The <StringScanner>.SkipToString() function moves the offset to the beginning of of Find_Text. The offset does not move if it is already pointing to Find_Text.
Example
dim scanner as P dim txt as C txt = <<%text% This is wonderful prose written by a technical writer of note. %text% scanner = stringscanner.create(txt) ? scanner.skiptostring("writer") = .T. ? scanner.GetToOffset() = This is wonderful prose written by a technical ? scanner.getremainder() = writer of note.
See Also